﻿@model PhotoGallery.Models.User

@{
    ViewData["Title"] = "新增用户";
}



<h4>新增用户</h4>
<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="Create">
            <div asp-validation-summary="All" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="UserName" class="control-label"></label>
                <input asp-for="UserName" class="form-control" />
                <span asp-validation-for="UserName" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Name" class="control-label"></label>
                <input asp-for="Name" class="form-control" />
                <span asp-validation-for="Name" class="text-danger"></span>
            </div>
            <div class="form-group">
                <div class="checkbox">
                    <label>
                        <input asp-for="IsEnable" /> @Html.DisplayNameFor(model => model.IsEnable)
                    </label>
                </div>
            </div>
            
            
            <div class="form-group">
                <label class="control-label">密码</label>
                <input asp-for="PasswdHash" class="form-control" type="password"/>
                <span asp-validation-for="PasswdHash" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label  class="control-label">重复密码</label>
                <input asp-for="Salt" class="form-control" type="password"/>
                <span asp-validation-for="Salt" class="text-danger"></span>
            </div>
            
            <div class="form-group">
                <input type="submit" value="提交" class="btn btn-default" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-action="Index">返回</a>
</div>

